package com.wing.bill.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.bill.model.entity.BillDetailInfo;
import com.wing.bill.model.entity.WarehouseBillDetail;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.bill.model.request.WarehouseBillDetailForm;
import com.wing.bill.model.response.WarehouseBillDetailVO;
import com.wing.common.utils.PageResult;

import java.util.List;
import java.util.Map;

public interface WarehouseBillDetailService extends IService<WarehouseBillDetail>{

    //入账
    boolean save(WarehouseBillDetailForm warehouseBillDetailForm);


    Boolean update(WarehouseBillDetailForm warehouseBillDetailForm);

    PageResult<Page<WarehouseBillDetailVO>> pageList4app(Page<WarehouseBillDetail> pg, Map paramMap);

    Boolean updateBillDetail(Long customerId, List<String> sysBundleCodeList);

    Boolean addBillDetail(Long customerId, List<BillDetailInfo> sysBundleCodeList , Long billId);
    Boolean addBillDetailOrder(Long customerId, Long billId, Double totalProcessingFee);

    Boolean updateAllBillDetail();

    Boolean updateBillDetailByBillId(Long id);
}
